<?php
namespace App;

use Illuminate\Database\Eloquent\Model;

class Message extends Model
{
    public function getSession()
    {
        $username = session('username');
        if(empty($username)){
            return '';
        }else{
            return $username;
        }
    }
}